package com.demo.spring.security.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("CUS_ROLE_USER")
public class CusRoleUser {
    @TableId("ID")
    private String id;
    @TableField("USER_ID")
    private String userId;
    @TableField("ROLE_ID")
    private String roleId;
    @TableField("PRIORITY")
    private Integer priority;
    @TableField(exist = false)
    private CusRole role;
    @TableField(exist = false)
    private CusUser user;
}
